package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.LoginInformation;
import com.example.demo.pojo.PublicFields;
import com.example.demo.pojo.dto.UserDTO;
import com.example.demo.pojo.entity.User;
import com.example.demo.pojo.vo.UserVO;

public interface IUserService extends IService<User> {
    User login(UserDTO userDTO);
    void logout();
    UserVO insert(UserDTO userDTO, PublicFields publicFields);
    void updateUser(UserDTO userDTO, PublicFields publicFields);
    void register(UserDTO userDTO, PublicFields publicFields);

    UserVO getUserByUserId(Long id);
}
